#!/usr/local/cdat5.2/bin/cdat
# give ur correct path

import vcs, cdms2, cdutil, time, os, sys



# Open data file:
filepath = os.path.join(sys.prefix, 'sample_data/iso.nc')
cdmsfile = cdms2.open( filepath )

# Initial VCS:
v = vcs.init()

df_asd = v.getisoline( 'ASD' )
df_asd.linecolors=(16,100,200)

# view the level labels
df_asd.label='yes'

#v.plot( data, df_asd,continents=4 )


data = cdmsfile('iso', longitude=(60, 100), latitude = (5., 40.))
v.plot( data, df_asd,continents=6 )
print "Press the Return key to see next plot."
v.png("/usr/local/cdat5.2/lib/python2.5/site-packages/isotherm_data/india_isoline")

# please give correct " ur_cdat_path/lib/python2.5/site-packages/isotherm_data/india_isoline " to save iindia_isoline.png




